From 9d56c56117b6dd83fad8a7a49a2266a3ab0ba789 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 6 Nov 2020 14:28:46 +0100 Subject: [PATCH] gtk/texthandle: Point handle to the middle of the pointing_to rect At least vertically, this gives again as much space up and down before moving the selection the the prev/next line. --- gtk/gtktexthandle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtktexthandle.c b/gtk/gtktexthandle.c index b900d699eb..47cceafa0e 100644 --- a/gtk/gtktexthandle.c +++ b/gtk/gtktexthandle.c @@ -447,7 +447,7 @@ handle_drag_update (GtkGestureDrag *gesture, gtk_gesture_drag_get_start_point (gesture, &start_x, &start_y); x = start_x + offset_x - handle->dx; - y = start_y + offset_y - handle->dy; + y = start_y + offset_y - handle->dy + (handle->pointing_to.height / 2); g_signal_emit (widget, signals[HANDLE_DRAGGED], 0, x, y); } -- 2.30.2